package com.artpri.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;


/**
 * FreightWay entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="freight_way"
    ,catalog="jpw"
)

public class FreightWay  implements java.io.Serializable {


    // Fields    

     private Integer fwId;
     private Integer ftId;
     private String freightType;
     private Integer isDefault;
     private String fwDetail;
     private String fwDesignateCity;

     

    // Constructors

    /** default constructor */
    public FreightWay() {
    }

    
    /** full constructor */
    public FreightWay(Integer ftId, String freightType, Integer isDefault, String fwDetail, String fwDesignateCity) {
    	this.ftId = ftId;
        this.freightType = freightType;
        this.isDefault = isDefault;
        this.fwDetail = fwDetail;
        this.fwDesignateCity = fwDesignateCity;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    @Column(name="fw_id", unique=true, nullable=false)
    public Integer getFwId() {
        return this.fwId;
    }
    
    public void setFwId(Integer fwId) {
        this.fwId = fwId;
    }
    
    @Column(name="ft_id", nullable=false)
    public Integer getFtId() {
        return this.ftId;
    }
    
    public void setFtId(Integer ftId) {
        this.ftId = ftId;
    }
    
    
    @Column(name="freight_type", nullable=false, length=10)
    public String getFreightType() {
        return this.freightType;
    }
    
    public void setFreightType(String freightType) {
        this.freightType = freightType;
    }
    
    @Column(name="is_default", nullable=false)
    public Integer getIsDefault() {
        return this.isDefault;
    }
    
    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }
    
    @Column(name="fw_detail", nullable=false, length=20)
    public String getFwDetail() {
        return this.fwDetail;
    }
    
    public void setFwDetail(String fwDetail) {
        this.fwDetail = fwDetail;
    }
    
    @Column(name="fw_designate_city", nullable=false, length=2500)
    public String getFwDesignateCity() {
        return this.fwDesignateCity;
    }
    
    public void setFwDesignateCity(String fwDesignateCity) {
        this.fwDesignateCity = fwDesignateCity;
    }

}